function User() {
  let _level = 0;
  Object.defineProperty(this, 'skillLevel', {
    get: () => {
      console.log('这里获取了这个数据，上报!');
      return _level;
    },
    set: (value) => {
      if (typeof value !== 'number') {
        console.log('类型错误');
        return;
      }
      _level = value;
    },
  });
}
